import ThirdLayout from "~/layout/ThirdLayout";
import DataWarningRouter, {SURFACE_DISPLACEMENT_DW} from "./DataWarningRouter";
import EquipmentWarningRouter, {SURFACE_DISPLACEMENT_EW } from "./EquipmentWarningRouter";
import DataWarningLogRouter, {SURFACE_DISPLACEMENT_DWLOG } from "./DataWarningLogRouter";
import EquipmentWarningLogRouter, {SURFACE_DISPLACEMENT_EWL } from "./EquipmentWarningLogRouter";

// 数据预警
export const DATA_WARNING = "data-warning";
// 设备预警
export const EQUIPMENT_WARNING = "equipment-warning";
// 数据预警日志
export const DATA_WARNING_LOG = "data-warning-log";
// 设备预警日志
export const EQUIPMENT_WARNING_LOG = "equipment-warning-log";

const routers = [
    {
        path: DATA_WARNING,
        name: DATA_WARNING,
        component: ThirdLayout,
        children: DataWarningRouter,
        redirect: {name: SURFACE_DISPLACEMENT_DW, },
        meta: {
            icon: 'icon-alarm-note',
            label: '数据预警',
            hasThird: true,
        }
    },{
        path: EQUIPMENT_WARNING,
        name: EQUIPMENT_WARNING,
        component: ThirdLayout,
        children: EquipmentWarningRouter,
        redirect: {name: SURFACE_DISPLACEMENT_EW, },
        meta: {
            icon: 'icon-warn-note',
            label: '设备预警',
            hasThird: true,
        }
    },{
        path: DATA_WARNING_LOG,
        name: DATA_WARNING_LOG,
        component: ThirdLayout,
        children: DataWarningLogRouter,
        redirect: {name: SURFACE_DISPLACEMENT_DWLOG, },
        meta: {
            icon: 'icon-calendar',
            label: '数据预警日志',
            hasThird: true,
        }
    },{
        path: EQUIPMENT_WARNING_LOG,
        name: EQUIPMENT_WARNING_LOG,
        component: ThirdLayout,
        children: EquipmentWarningLogRouter,
        redirect: {name: SURFACE_DISPLACEMENT_EWL, },
        meta: {
            icon: 'icon-calendar',
            label: '设备预警日志',
            hasThird: true,
        }
    },
];
export default routers;